<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button @click="test">click</button>
			<hello @click.native="test"></hello>
		</div>
	</body>
</html>

<script type="text/javascript">
	const hello = {
		template: `<h3>native事件修饰符</h3>`
	}
	
	new Vue({
		el: '#app',
		components: {
			hello
		},
		methods: {
			test() {
				alert('哈哈哈');
			}
		}
	})
	
	
</script>
